import http from '@/utils/request'

export const createFavorite = params => http.post(`/web/reports/sys/userFavorite`, params)

export const deleteFavorite = ({ id, resourceType }) => http.delete(`/web/reports/sys/userFavorite/delete/${resourceType}/${id}`)

export const fetchQuery = params => http.post(`/web/reports/sys/sql/query`, params)

export const matchJira = params => http.get(`/web/data-jira-api/issue/comment/exist`, { params })

export const fetchConnect = params => http.post(
  `/web/task-management/sys/tenant/connector/status/selectList`,
  params
)
